package com.lt.lumentracks.mapper;

import com.lt.lumentracks.entity.po.PostImage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 帖子图片表（外表） Mapper 接口
 * </p>
 *
 * @author swl
 * @since 2025-07-28
 */
public interface PostImageMapper extends BaseMapper<PostImage> {

    /** 获取某些帖子的封面图
     * @param postIdList 帖子id集合
     * @return map集合--> key:帖子id  value:对应的封面图url
     */
    Map<Integer, String> FirstImageMap_FindByPostId(@Param("postIdList") List<Integer> postIdList);
}
